﻿using System;

namespace Common.Reflection.Model
{
    /// <summary>
    /// 数据验证返回的错误信息
    /// </summary>
    public class ErrorMessages
    {
        public ErrorMessages(string _fieldName, string _message)
        {
            this.message = _message;
            this.fieldName = _fieldName;
        }
        private string fieldName;
        private string message;
        /// <summary>
        /// 列名
        /// </summary>
        public string FieldName
        {
            get { return this.fieldName; }
            set { this.fieldName = value; }
        }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string Message
        {
            get { return message; }
            set { this.message = value; }
        }
    }
}
